<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE html>
<html>
<script src="http://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script>
<link href="http://how2j.cn/study/css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
<script src="http://how2j.cn/study/js/bootstrap/3.3.6/bootstrap.min.js"></script>
<head>
<base href="<%=basePath%>">
<title>管理员信息查看</title>
</head>
<body>
<p>首页->管理员专页->管理员信息查看</p>
<form method="post">
		<div>
			<a href="<s:url action="turntoadministratoraddpage"/>">添加管理员</a>
			<table class="table table-bordered" >
					<tr>
						<th>账号</th>
						<th>用户名</th>
						<th>登录密码</th>
						<th>操作</th>
					</tr>
					<s:iterator value="#request.administrators">
						<tr>
							<td><s:property value="administrator"/></td>
							<td><s:property value="adname"/></td>
							<td><s:property value="adpad"/></td>
							<td>
								<a href="<s:url action="administratordelete">
											<s:param name="administrator.administrator"><s:property value="administrator"/></s:param> 
										 </s:url>">删除</a>
								<a href="<s:url action="turntoadministratorupdatepage">
											<s:param name="administrator.administrator"><s:property value="administrator"/></s:param>
										 </s:url>">修改</a>
							</td>
						</tr>
					</s:iterator>
					<tr>
						<td colspan="2" style="font-size: 13px">第
								<s:property value="#request.PageService.currentPage"/>页/共
								<s:property value="#request.PageService.pageCount"/>页
								<s:property value="#request.PageService.recordCount"/>节可选课程
						</td>
						<td colspan="2" align="center" style="font-size:14px;">
							<div>
								<nav>
								  <ul class="pager"  style="margin:0px">
								    <li><a href="<s:url action="pageChange?currentPagechange=1"/>">首页</a></li>
								    <s:if test="#request.PageService.currentPage-2>0">
								    	 <li>
								    	 	<a href="<s:url action="pageChange?currentPagechange=%{#request.PageService.currentPage-2}"/>" id="li1" >
												<s:property value="#request.PageService.currentPage-2"/>
											</a>
										 </li>
								    </s:if>
								    <s:if test="#request.PageService.currentPage-1>0">
								    	 <li>
								    	 	<a href="<s:url action="pageChange?currentPagechange=%{#request.PageService.currentPage-1}"/>" id="li2" >
												<s:property value="#request.PageService.currentPage-1"/>
											</a>
										 </li>
								    </s:if>
								    <li><a><s:property value="#request.PageService.currentPage"/></a></li>
								    <s:if test="#request.PageService.currentPage+1<=#request.PageService.pageCount">
								    	 <li>
								    	 	<a href="<s:url action="pageChange?currentPagechange=%{#request.PageService.currentPage+1}"/>"  id="li3" >
												<s:property value="#request.PageService.currentPage+1"/>
											</a>
										 </li>
								    </s:if>
								     <s:if test="#request.PageService.currentPage+2<=#request.PageService.pageCount">
								    	 <li>
								    	 	<a href="<s:url action="pageChange?currentPagechange=%{#request.PageService.currentPage+2}"/>"  id="li4" >
												<s:property value="#request.PageService.currentPage+2"/>
											</a>
										 </li>
								    </s:if>
								    <li><a href="<s:url action="pageChange?currentPagechange=%{#request.PageService.pageCount}"/>">尾页</a></li>
								  </ul>
								</nav>
							</div>
							</td></tr>
					</table>
					</div>
					</form>
			</body>
</html>
